#ifndef __CONTRACT_SCENE_H__
#define __CONTRACT_SCENE_H__

#include "BaseLayer.h"
#include "PhysicsSprite.h"

class ContractListener;
class ContractScene : public BaseLayer {
public:
	ContractScene();
	~ContractScene();
	bool init();
	static CCScene* scene();
	CREATE_FUNC(ContractScene);

public:
	virtual void initPhysics();
	void addNewSpriteAtPosition(const CCPoint &pt);
	
public:
	virtual void update(float delta);
	virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);

private:
	ContractListener *m_contractListener;
	CCArray* m_sprites;
	b2Fixture* groundFixture[4];
};

#endif // __CONTRACT_SCENE_H__